package com.hongminzheng.openapi.service;

import com.github.pagehelper.PageInfo;
import com.hongminzheng.openapi.pojo.Token;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hmz
 * @date2020/10/29 version V1.0
 **/
public interface TokenService {

    int deleteByPrimaryKey(Integer id);

    int insert(Token token);

    int insertSelective(Token token);

    Token selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Token token);

    int updateByPrimaryKey(Token token);

    /**
     * 分页
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<Token> findPage(Integer pageNum, Integer pageSize, Token token);



}
